package com.keli.common;

import java.util.HashMap;
import java.util.Map;
import java.util.Map.Entry;

/**
 * 车道映射表
 */
public class LaneMapper {
	public static Map<String, String> laneMapper;

	static {
		laneMapper = new HashMap<String, String>();
		// key:, value:
	}

	public static String getValue(String key) {
		return laneMapper.get(key);
	}

	public static String getKey(String value) {
		for (Entry<String, String> m : laneMapper.entrySet()) {
			if (m.getValue().equals(value)) {
				return m.getKey();
			}
		}
		return null;
	}
}
